home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / loa_and_the_island.swf / scripts / DefineSprite_772 / frame_8 / PlaceObject2_575_278 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-03-17  |  778b  |  26 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.paused == false)
  3.    {
  4.       if(_root.level.sprite._x > _X - 100 + _parent._x and _root.level.sprite._x < _X + 100 + _parent._x and _root.level.sprite._y > _Y - 100 + _parent._y and _root.level.sprite._y < _Y + 100 + _parent._y and _root.level.sprite.inair == false)
  5.       {
  6.          gotoAndStop(1);
  7.          if(key.isdown(88) and keypressed == false)
  8.          {
  9.             _root.paused = true;
  10.             _root.conversation = true;
  11.             keypressed = true;
  12.             _root.level.sprite.gotoAndStop("stand");
  13.             _root.topic = "pillparents";
  14.          }
  15.       }
  16.       else
  17.       {
  18.          gotoAndStop(2);
  19.       }
  20.       if(key.isdown(88) == false)
  21.       {
  22.          keypressed = false;
  23.       }
  24.    }
  25. }
  26.